Skip to content

feat: Added interrupt option to Conversation and useConversation#18

Closed
aleksailosey wants to merge 3 commits intoelevenlabs:mainfrom
aleksailosey:main
Closed

feat: Added interrupt option to Conversation and useConversation#18
aleksailosey wants to merge 3 commits intoelevenlabs:mainfrom
aleksailosey:main

Conversation

@aleksailosey
Copy link
Copy Markdown

This is useful for a "click to interrupt" feature

@imaxisXD
Copy link
Copy Markdown

Plus one this is a much needed thing in the sdk

@AngeloGiacco
Copy link
Copy Markdown
Collaborator

lgtm but can you give send off as well @aarthificial

};

public interrupt = () => {
return this.fadeOutAudio()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should set the lastInterruptionTimestamp to the currentEventId to prevent future audio chunks streamed for the current agent response from canceling the fadeout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants